package com.itheima.dao;

import com.itheima.domain.Account;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @program: Spring_day01_01_IOC入门程序
 * @description:
 * @author: xuejingjing
 * @create: 2021-08-01 14:57
 **/

@Component
public interface AccountDao {

    void save(Account account);

    void delete(Integer id);

    void update(Account account);

    List<Account> findAll();

    Account findById(Integer id);

}
